<?php

if (!empty($email)) {
     echo "<script>alert('There are no fields to generate a report');</script>";
}
